<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    .box {
      width: 95px;
      height: 95px;
      border: 1px solid #666;
      border-radius: 5px;
      display: flex;
      justify-content: space-between; /*两端对齐*/
      padding: 5px;
    }

    .item {
      width: 20px;
      height: 20px;
      background-color: #000;
      border-radius: 50%;
    }

    /*色子2*/
    .box .item:nth-child(2) {
      align-self: center;
    }
    /*色子3*/
    .box .item:last-child {
      align-self: flex-end;
    }
  </style>
  <body>
    <div class="box">
      <div class="item"></div>
      <div class="item"></div>
      <div class="item"></div>
    </div>
  </body>
</html>
